import request from "./request";
//登录-用户名密码
export const reqLogin = (data) => request({ url: '/login', method: 'POST', data })
//获取商品列表一级分类
export const reqGetCategory = () => request({ url: '/home/category/head', method: 'GET' })
//获取轮播图数据
export const reqBannerList = () => request({ url: '/home/banner?distributionSite=1', method: 'GET' })
//获取新鲜好物数据
export const reqFresh = () => request({ url: '/home/new?limit=4', method: 'GET' })
//获取人气推荐数据
export const reqRecommend = () => request({ url: '/home/hot', method: 'GET' })
//获取热门品牌数据
export const reqTrademark = () => request({ url: '/home/brand?limit=5', method: 'GET' })
//获取产品列表
export const reqGoods = () => request({ url: '/home/goods', method: 'GET' })
//获取最新专题
export const reqNew = () => request({ url: '/home/special', method: 'GET' })
//获取一级目录的商品
export const reqGetCategory1 = (id) => request({ url: `/category/?id=${id}`, method: 'GET' })